home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-3734
/
data
/
newton_2.mcl
< prev
next >
Wrap
Text File
|
1987-04-21
|
1KB
|
72 lines
type ball "\data\str_ball.3d";
type pole "\data\pole_660.3d";
prefs "\data\sph_pref.prf";
palette 1;
object top_pole type pole at [0,-15,600];
object ball_1 type ball at [-200,0,600] looking [90*16,0,0];
object ball_2 type ball at [-100,0,600] looking [90*16,0,0];
object ball_3 type ball at [0,0,600] looking [90*16,0,0];
object ball_4 type ball at [100,0,600] looking [90*16,0,0];
object ball_5 type ball at [200,0,600] looking [90*16,0,0];
camera cam at [0,0,-400] looking [0,5*16,0];
lightsource lig at [0,0,0];
lig.main[] {wait;}
cam.main[] {wait;}
ball_1.main[]{
moveit [90];
kick ball_5;
wait;
}
ball_2.main[]{
moveit [90];
kick ball_4;
wait;
}
ball_3.main[]{
wait;
}
ball_4.main[]{
wait;
moveit [-90];
frame;
endsim;
}
ball_5.main[]{
wait;
moveit [-90];
frame;
endsim;
}
top_pole.main[]{ wait; }
moveit [speed] {
i_speed = speed*(-1);
while [speed <> 0]{
c=c+speed;
if [speed > 0]{
speed = speed - 5;
} else {
speed = speed + 5;
}
frame;
}
while [speed <> i_speed]{
c=c+speed;
if [i_speed > 0]{
speed = speed + 5;
} else {
speed = speed - 5;
}
frame;
}
c=c+speed;
}